<template>
  <el-form ref="form" :model="form" inline label-width="80px" class="search-form">
    <el-form-item prop="dataSourceName">
      <el-input v-model="form.dataSourceName" clearable placeholder="请输入联系人" />
    </el-form-item>
    <el-form-item prop="dataSourceName">
      <el-input v-model="form.phone" clearable placeholder="电话" />
    </el-form-item>
    <el-form-item prop="dataSourceName">
      <el-input v-model="form.emily" clearable placeholder="邮箱" />
    </el-form-item>

    <el-form-item class="query-action">
      <el-button type="primary" @click="$emit('getTableData',form)"> 查询 </el-button>
      <el-button @click="resetBtn"> 重置 </el-button>
      <el-button @click="$emit('addBtn')"> 新增 </el-button>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  name: 'GetList',
  data() {
    return {
      form: {}
    }
  },
  methods: {
    resetBtn() {
      this.form = {}
      this.$emit('resetBtn', false)
    }
  }
}
</script>

<style scoped lang="scss">

</style>
